package test;

/**
 * @Author:zimmor
 * @Date: 2022/8/5 18:28
 * @Description
 * @version: 1.0.0
 */

public class Demo8 {
    public static void main(String[] args) {
        String a = "test";
        byte[] bytes = a.getBytes();
        System.out.println("byte1:" + bytes);
        String  b = new String(bytes);
        System.out.println(new String(bytes));
        System.out.println("byte2:"+ b.getBytes());
    }
}
